package com.xxgc.ssm.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.beans.factory.annotation.Autowired;

@Aspect
public class InfoAspect {
    @Autowired
    private InfoService infoService;

    @Before("execution(* com.xxgc.ssm.service..*.*(..))")
    public void refresh(){//当有service的方法调用时就刷新它们父类的info
        infoService.refresh();
    }
}
